package nancal.mp.db.mongo.entity.dev

import nbcp.base.db.annotation.Cn
import nbcp.base.db.annotation.DbEntityGroup
import nbcp.base.db.annotation.DbEntityIndex
import nbcp.base.db.annotation.DbEntityIndexes
import nbcp.base.model.BaseMarkEntity
import org.springframework.data.mongodb.core.mapping.Document

@Cn("集群")
@Document
@DbEntityGroup("dev")
@DbEntityIndexes(DbEntityIndex("code", unique = true))
data class ClusterInfo(
    @Cn("序号") var index: Int = 0,
    @Cn("编码") var code: String = "",
    @Cn("名称") var name: String = "",
    @Cn("备注") var remark: String = ""
) : BaseMarkEntity()